﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace DoAn_BumTruong_DesignPattern.Controls
{
    public partial class Login : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Session["LoginReferrer"] = Request.QueryString["ReturnUrl"] ?? (Page.Request.UrlReferrer != null ? Page.Request.UrlReferrer.ToString() : "~/");
            }
            //if (User.Identity.IsAuthenticated)
            //{
            //    FormsAuthentication.SignOut();
            //    Response.Redirect("~/");
            //}
        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }
    }
}